#pragma once
#ifndef __G_BUSY_WAIT_H__
#define __G_BUSY_WAIT_H__

#include "GTypes.h"

namespace GThread
{
	class GBusyWait
	{
	private:
		GSize	StopAt;
		GSize	Counter;

	public:
				GBusyWait();
				GBusyWait(GSize StopCount);
				~GBusyWait();

		void	Reset();

		void	Wait();
		bool	WaitNoYield();

	};
}

#endif